package com.zyf.system.controller.dto;

import com.zyf.system.annotation.RoleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

/**
 * @author 张云帆
 * 2025/3/25 15:59
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class UserAddDto {
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @RoleType
    @ApiModelProperty(value = "用户角色", required = true, example = "patient(doctor、admin)")
    private String role;

    @NotEmpty(message = "真实姓名不能为空")
    @ApiModelProperty(value = "用户真实姓名", example = "孙有", required = true)
    private String realName;

    @ApiModelProperty(value = "用户手机号", example = "12345678901")
    private String phone;

    @ApiModelProperty(value = "用户邮箱", example = "12345678901@qq.com")
    private String email;
}
